var alert_msg = {
	//成功提示层
	success: function(message,hrefUrl){
		layer.msg(message, {icon: 1,time:2000}, function(index){

            if(hrefUrl)
                window.location.href=hrefUrl;

            layer.close(index);
        });
	},

	// 错误提示层
	error: function(message,hrefUrl) {
        layer.msg(message, {icon: 2,time:3000}, function(index){

            if(hrefUrl)
                window.location.href=hrefUrl;

            layer.close(index);
        });
    },

    //弹窗提示
    erroralert: function(message){
        layer.alert(message,{icon: 5});
    },
}
